﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.AutoMapper;
using FwProject.Distribution.Dto;
using X.PagedList;

namespace FwProject.Distribution
{
    [AutoMap(typeof(DistributionLine))]
    public interface IDistributionLineAppService: IApplicationService
    {
        Task<Guid> Create(DistributionLineInput input);

        Task Update(Guid id, DistributionLineInput input);

        Task Delete(Guid id);

        Task<DistributionLineDto> GetByIdAsync(Guid id);

        Task<List<DistributionLineDto>> GetAllLineAsync();

        Task<IPagedList<DistributionLineDto>> GetPagedListAsync(int pageIdx, int pageSize, string name);
    }
}
